package com.example.newproject_overseas.components


import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.viewinterop.AndroidView

@Composable
fun WebviewComponent(url: String) {
    AndroidView(
        factory = { context ->
        WebView(context).apply {
            loadUrl(url)
        }
    })
}



